#ifndef DATA_PARSER_H_
#define DATA_PARSER_H_
#include <iostream>
#include <vector>
#include "private_struct.h"


class DataParser
{
public:
    DataParser();

    ~DataParser();

    void parser_data_from_udp(uint8_t* buffer, uint32_t buffer_length, std::vector<PointInfo> &data);

    void pack_point_output(std::vector<PointInfo> &out_dot, uint8_t* buffer, uint32_t buffer_length);

    void pack_track_output(std::vector<TrackOut> &track, uint8_t* buffer, uint32_t buffer_length);


private:

    MagicNumberInfo magic_number_track_CR;
};


#endif /* DATA_PARSER_H_ */
